package com.bmps.springcloud.insuredmicroservice.constant.accept;

import java.util.Arrays;
import java.util.List;

/**
 * @author lyw
 * @date 2019-07-27 14:38:05
 */
public class AcceptConstant {
    public static final String MINUS_ONE = "-1";
    /**
     * 特殊渠道
     */
    public static final String Z001 = "Z001";
    public static final String V00105 = "V00105";

    /**
     * 任务错误码
     */
    public static final String TASK_ERROR = "error";
    public static final String TASK_TRUE = "true";
    public static final boolean TASK_FALSE = false;

    public static final String STRING_Y = "Y";

    public static final String RESPONSE_ERROR_CODE = "N";

    public static final String RESPONSE_SUCCESS_CODE = "Y";

    public static final String UNDERWRITING_MESSAGE = "智能核保进入人工核保";

    public static final String DECLINATURE_APPNT_PHONE_USE_TIMES = "投保失败，投保人电话已被多次投保使用，请核实！";

    public static final String NON_MANUAL_UNDERWRITING_PREFIX = "D007|inwchbrisk|";
    /**
     * 智能核保人核标识别
     */
    public static final String INFORM_RESULT = "2";
    /**
     * 产品计算要素配置
     */
    public static final String REDIS_PREFIX_R001 = "R001";
    /**
     * 产品费率
     */
    public static final String REDIS_PREFIX_R003 = "R003";
    /**
     * 保费试算应用值
     */
    public static final String REDIS_PREFIX_R004 = "R004";
    /**
     * 产品计算公式要素配置
     */
    public static final String REDIS_PREFIX_R005 = "R005";
    /**
     * 产品计算公式配置
     */
    public static final String REDIS_PREFIX_R006 = "R006";
    /**
     * 受理黑名单
     */
    public static final String REDIS_PREFIX_D001 = "D001";
    /**
     * 受理数据保单
     */
    public static final String REDIS_PREFIX_D003 = "D003";
    /**
     * 查询居住地为几线城市
     */
    public static final String REDIS_PREFIX_CITY = "CITY";
    /**
     * 产品有效期前缀
     */
    public static final String REDIS_PREFIX_R008 = "R008|";
    /**
     * 保盾云配置
     */
    public static final String REDIS_PREFIX_B001 = "B001|agentcom|";

    /**
     * 保盾云配置
     */
    public static final String REDIS_PREFIX_B002 = "B002|riskcode|";
    /**
     * 保盾云配置
     */
    public static final String REDIS_PREFIX_B003 = "B003|riskcode";
    /**
     * 保盾云配置
     */
    public static final String REDIS_PREFIX_B004 = "B004|";
    /**
     * 百融配置
     */
    public static final String REDIS_PREFIX_BR = "BR00*";
    /**
     * 百融配置
     */
    public static final String REDIS_PREFIX_BR01 = "BR001|agentcom|";

    /**
     * 百融配置
     */
    public static final String REDIS_PREFIX_BR02 = "BR002|riskcode|";
    /**
     * 百融配置
     */
    public static final String REDIS_PREFIX_BR03 = "BR003|riskcode";
    /**
     * 阳光配置
     */
    public static final String REDIS_PREFIX_SUN01 = "SUN001|agentcom|";
    /**
     * 阳光配置
     */
    public static final String REDIS_PREFIX_SUN02 = "SUN002|riskcode|";
    /**
     * 阳光配置
     */
    public static final String REDIS_PREFIX_SUN03 = "SUN003|riskcode";
    /**
     * 服务类型
     */
    public static final String SERVICE_ACCEPT = "accept";
    /**
     * 失败码
     */
    public static final String RESULT_FAIL_CODE = "2001";

    public static final String CALCULATION_TYPE_P = "P";

    public static final String CALCULATION_TYPE_G = "G";

    public static final String CALCULATION_TYPE_A = "A";

    public static final String NO_EXISTS_STRATEGY = "险种策略不存在";

    public static final String RESULT_FAIL_MESSAGE = "系统异常,请稍后再试！";

    public static final String TRIAL_RESULT_FAIL_MESSAGE = "保费计算失败,失败原因是：%s-%s保费计算为0!";

    public static final String AMNT_RESULT_FAIL_MESSAGW = "保额计算失败，失败原因是：%s-%s保额计算为0!";

    public static final String ADD_PREM_RESULT_FAIL_MESSAGE = "计算加费金额失败,失败原因是：%s-%s保费计算为0!";

    public static final String TRIAL_PREMIUM_MESSAGE = "录入首期保费合计[%s]与系统计算保费合计[%s]不符！";

    public static final String AMNT_PREMIUM_MESSAGE = "产品[%s]-[%s]录入保额[%s]与系统计算保额[%s]不符，请检查保险期间，投保年龄，年金领取年龄等信息是否正确！";

    public static final String ADD_PREM_ERROR = "产品[%s]录入加费金额[%s]与系统计算加费金额[%s]不符！";

    /**
     * 直接拒保对应提示信息
     */
    //public static final String CLOUD_DECLINATURE_MESSAGE = "%s的投保申请未通过我公司的审核,暂时不能投保该产品,感谢您的光顾!";

    //public static final String CLOUD_DECLINATURE_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经医疗健康风控平台查询结果阳性，暂不能投保";

    public static final String CLOUD_DECLINATURE_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经健康风控评估后，暂不能投保。";
    /**
     * 有人核流程
     */
    public static final String SUN_UNDERWRITING_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经我司评分系统评估后，需经核保进一步审核，我司将尽快通知您核保决定，烦请您耐心等待。";
    /**
     * //无人核流程
     */
    public static final String SUN_DECLINATURE_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经我司评分系统评估后，暂不能投保。";

    //public static final String CLOUD_UNDERWRITING_MESSAGE = "%s的健康风控模型返回结果异常，需人工核保!";

    //public static final String CLOUD_UNDERWRITING_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经医疗健康风控平台查询结果阳性，需人工核保，我司将尽快通知您核保决定，烦请您耐心等候";

    public static final String CLOUD_UNDERWRITING_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经健康风控评估后，需经核保进一步审核，我司将尽快通知您核保决定，烦请您耐心等待。";

    //public static final String BR_DECLINATURE_MESSAGE = "%s的财务风控模型提示异常，不能投保!";

    //public static final String BR_DECLINATURE_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经财务风控平台查询结果阳性，暂不能投保";

    public static final String BR_DECLINATURE_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经财务风控评估后，暂不能投保。";

    //public static final String BR_UNDERWRITING_MESSAGE = "%s财务风控模型返回结果异常，需人工核保!";

    //public static final String BR_UNDERWRITING_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经财务风控平台查询结果阳性，需人工核保，我司将尽快通知您核保决定，烦请您耐心等候";

    public static final String BR_UNDERWRITING_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经财务风控评估后，需经核保进一步审核，我司将尽快通知您核保决定，烦请您耐心等待。";

    //public static final String CBIT_DECLINATURE_MESSAGE = "%s的风控模型提示异常，不能投保!";

    //public static final String CBIT_DECLINATURE_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经意健险风控平台查询结果阳性，暂不能投保";

    public static final String CBIT_DECLINATURE_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经意健险风控评估后，暂不能投保。";

    //public static final String CBIT_UNDERWRITING_MESSAGE = "%s风控模型返回结果异常，需人工核保!";

    //public static final String CBIT_UNDERWRITING_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经意健险风控平台查询结果阳性，需人工核保，我司将尽快通知您核保决定，烦请您耐心等候";

    public static final String CBIT_UNDERWRITING_MESSAGE = "尊敬的%s（女士/先生），您的投保申请经意健险风控评估后，需经核保进一步审核，我司将尽快通知您核保决定，烦请您耐心等待。";

    /**
     * 直接承保对应返回码
     */
    public static final String CLOUD_UNDERWRITE_CODE = "0000";

    /**
     * 直接承保对应提示信息
     */
    public static final String CLOUD_UNDERWRITE_MESSAGE = "受理成功!";

    /**
     * 人工承保对应返回码
     */
    public static final String CLOUD_PERSON_UNDERWRITE_CODE = "1001";

    /**
     * 成功码
     */
    public static final String RESULT_SUCCESS_CODE = "0000";

    public static final String RESULT_SUCCESS_MESSAGE = "任务操作成功!";

    public static final String CREDENTIALS_IDNO = "11";

    public static final int IDENTITY_CARD_18 = 18;

    /**
     * 主险标识
     */
    public static final String MAIN_RISK_FLAG = "M";
    /**
     * 主险标识
     */
    public static final String MAIN_RISK_MESSAGE = "该保单缺失主险!";

    public static final String SYSTEM_NOT_PROUDCT_MESSAGE = "系统不支持险种：%s-%s!";
    /**
     * 渠道
     */
    public static final String SALECHNL = "10";
    /**
     * 渠道校验KEY
     */
    public static final String SALECHNL_KEY = "D005|agentcom";
    /**
     * 渠道提示信息
     */
    public static final String SALECHNL_MESSAGE = "非网销渠道保单，不能操作承保交易!";
    /**
     * 机构编码
     */
    public static final String AGENT_KEY = "D006|inwchb";
    /**
     * 产品险种代码
     */

    public static final String PRODUCT_RISKCODE_HCT019 = "HCT019";

    public static final String PRODUCT_RISKCODE_HDT051 = "HDT051";

    public static final String PRODUCT_RISKCODE_HDT053 = "HDT053";

    public static final String PRODUCT_RISKCODE_AAT078 = "AAT078";

    /**
     * 中保信任务标识别
     */
    public static final String TASK_CBIT_UNDERWRITING = "Cbit";

    /**
     * 投核保任务标识
     */
    public static final String TASK_IDENTITY_INSURED = "Insured";


    /**
     * 累计风险任务标识
     */
    public static final String TASK_IDENTITY_ACCUMULATED = "Accumulated";

    /**
     * 未成年人死亡
     */
    public static final String TASK_IDENTITY_MINOR_DEATH = "MinorDeath";
    /**
     * 住院险任务标识
     */
    public static final String TASK_IDENTITY_HOSPITAL = "Hospital";

    /**
     * 交通意外险任务标识
     */
    public static final String TASK_IDENTITY_TRAFFIC = "Traffic";

    /**
     * 意外险任务
     */
    public static final String TASK_ACCIDENT = "Accident";
    /**
     * 特殊险类校验
     */
    public static final String TASK_RISK = "GeneralRisk";

    /**
     * 计算加费
     */
    public static final String TASK_ADD_PREM = "AddPrem";

    /**
     * 保费试算任务标识
     */
    public static final String TASK_IDENTITY_CALCULATION = "Calculation";

    public static final String TASK_IDENTITY_AMNT = "Amnt";
    /**
     * 黑名单任务标识
     */
    public static final String TASK_IDENTITY_BLACKLIST = "BlackList";
    /**
     * 在途保单校验
     */
    public static final String TASK_IDENTITY_VERIFICATION = "Verification";
    /**
     * 第三方核保
     */
    public static final String TASK_TRANSIT_UNDERWRITING = "Transit";
    /**
     * 冲突信息校验
     */
    public static final String TASK_CONFLICTING_INFO = "Conflicting";
    /**
     * 电话校验
     */
    public static final String TASK_PHONE_VERIFY = "PhoneVerify";
    /**
     * 受理失败
     */
    public static final Integer MESSAGE_FAIL_CODE = 0;
    /**
     * 表示受理成功
     */
    public static final Integer MESSAGE_SUCCESS_CODE_ONE = 1;
    /**
     * 表示进人工核保
     */
    public static final Integer MESSAGE_SUCCESS_CODE_TWO = 2;
    /**
     * 未查询到对应险种！
     */
    public static final String NOT_EXIST = "未查询到对应险种!";
    /**
     * 险种[xxxx]开办日期有误！
     */
    public static final String START_DATE_ERROR = "险种[%s]开办日期有误！";
    /**
     * 险种[xxxx]停办日期有误！
     */
    public static final String END_DATE_ERROR = "险种[%s]停办日期有误！";
    /**
     * 在途保单提示信息
     */
    public static final String VERIFICATION_MESSAGE = "您有核保在途保单,需待核保处理完毕,方可再次投保!";
    /**
     * 业务级黑名单提示信息
     */
    public static final String BLACK_LIST_SYSTEM_MESSAGE = "反洗钱监控名单匹配，请立即报告合规部门!";

    public static final String HIGH_RISK_CUSTOMER_MESSAGE = "自助业务受理失败，请到公司柜面办理。";

    public static final String BANK_INFORMATION_CHECK_CUSTOM_MESSAGE = "续期银行信息不完整，请补充完整！";

    public static final double ZERO_POINT_TWO = 0.2;

    /**
     * 职业类别
     */
    public static final String OCCUPATION_TYPE_ONE = "1";
    public static final String OCCUPATION_TYPE_TWO = "2";
    public static final String OCCUPATION_TYPE_THREE = "3";
    public static final String OCCUPATION_TYPE_FOUR = "4";
    public static final String OCCUPATION_TYPE_FIVE = "5";
    public static final String OCCUPATION_TYPE_SIX = "6";
    public static final List<String> OCCUPATION_ONE_TO_SIX = Arrays.asList("1", "2", "3", "4", "5", "6");
    public static final List<String> OCCUPATION_ONE_TO_FOUR = Arrays.asList("1", "2", "3", "4");

    /**
     * 关系-父母
     */
    public static final List<String> PARENTAL_RELATIONSHIP = Arrays.asList("05", "06", "32", "37", "38", "39", "40");


    /**
     * 计划
     */
    public static final Integer PLAN_VERSION_ONE = 1;
    public static final Integer PLAN_VERSION_TWO = 2;
    public static final Integer PLAN_VERSION_THREE = 3;

    /**
     * 豁免责任缓存前缀
     */
    public static final String EXEMPT_DUTY_RISK = "Exempt|";
    /**
     * 重疾险类
     */
    public static final String SERIOUS_ILLNESS_INSURANCE = "RiskSort|SeriousIllness";
    /**
     * 寿险类
     */
    public static final String LIFE_INSURANCE = "RiskSort|LifeInsurance";

    /**
     * 意外险类
     */
    public static final String ACCIDENT_INSURANCE = "RiskSort|Accident";

    /**
     * 风险保额费率前缀
     */
    public static final String PREFIX_INSURANCE_AMOUNT_RATE = "R008|";

    /**
     * 竖线
     */
    public static final String VERTICAL_BAR = "|";
    public static final Integer ZERO = 0;

    /**
     * 客户类型 1-普通 2-私行 3-特殊
     */
    public static final String NORMAL = "1";
    public static final String PRIVATE = "2";
    public static final String SPECIAL = "3";
    public static final String CUSTOMER_TYPE_ERROR = "客户类型异常";
}
